home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d09xx / d0906.lha / PowerData / Documentation / ARexx Examples / TmpFiles.rexx < prev    next >
OS/2 REXX Batch file  |  1993-08-28  |  646b  |  36 lines

  1. /* NAME
  2.  *    TmpFiles.rexx - Print out number of temporary files
  3.  *
  4.  * SYNOPSIS
  5.  *    rx TmpFiles
  6.  *
  7.  * FUNCTION
  8.  *    If PowerData is running, then have it tell us how many temporary files
  9.  *    it is currently using. Otherwise fail with an error message.
  10.  *
  11.  * INPUTS
  12.  *    None
  13.  *
  14.  * OUTPUTS
  15.  *    Number of files, or an error message
  16.  *
  17.  * NOTES
  18.  *
  19.  * SEE ALSO
  20.  *
  21.  * Author: Michael Berg
  22.  * Date  : 9-Mar-1993
  23.  * This file is part of the PowerData distribution.
  24.  */
  25.  
  26. OPTIONS RESULTS
  27.  
  28. IF SHOW(P,'POWERDATA') THEN DO
  29.   ADDRESS 'POWERDATA' tmpfiles
  30.   SAY 'Number of temporary files: 'RC
  31. END
  32. ELSE
  33.   SAY 'PowerData is not running'
  34.  
  35. /* The End */
  36.